package com.ly.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ly.base.ResponseData;
import com.ly.dto.CarInfoDto;
import com.ly.entity.Car;
import com.ly.param.CarAuditParam;
import com.ly.param.CarParam;

import java.security.Principal;

public interface CarService {

    ResponseData addCarInfo(Car car, Principal principal);

    ResponseData updateCarInfo(Car car, Principal principal);

    ResponseData auditCarInfo(CarAuditParam carAuditParam, Principal principal);

    Page<CarInfoDto> pageCarInfoList(CarParam carParam);

    Page<CarInfoDto> pageCarInfo(CarParam carParam);

    Page<CarInfoDto> vipPageCarInfoList(CarParam carParam, Principal principal);

    ResponseData deleteCarInfo(String id);

    Car findByCarId(String id);

}
